import request from '@/utils/request'
/** 销售管理*/
export function listSaleBom(data) {
  return request({
    url: '/ims/sale/bom/page', method: 'get', params: data
  })
}
export function listSaleBomSelect(data) {
  return request({
    url: '/ims/sale/bom/select', method: 'get', params: data
  })
}
export function getSaleBom(data) {
  return request({
    url: '/ims/sale/bom/detail/'+data, method: 'get'
  })
}

export function addSaleBom(data) {
  return request({
    url: '/ims/sale/bom/save', method: 'post', data: data
  })
}

export function updateSaleBom(data) {
  return request({
    url: '/ims/sale/bom/edit', method: 'post', data: data
  })
}

export function deleteSaleBom(data) {
  return request({
    url: '/ims/sale/bom/delete', method: 'post', data: data
  })
}
/** 销售价格*/
export function listSalePrice(data) {
  return request({
    url: '/ims/sale/policy/page', method: 'get', params: data
  })
}
export function addSalePrice(data) {
  return request({
    url: '/ims/sale/policy/save', method: 'post', data: data
  })
}
export function updateSalePrice(data) {
  return request({
    url: '/ims/sale/policy/edit', method: 'post', data: data
  })
}
export function deleteSalePrice(data) {
  return request({
    url: '/ims/sale/policy/delete', method: 'post', data: data
  })
}
export function uploadSaleOrderFile(data) {
  return request({
    url: '/ims/customer/order/pic', method: 'post',data:data
  })
}
export function updateSaleOrderExpress(data) {
  return request({
    url: '/ims/customer/order/changeExpress', method: 'post',data:data
  })
}
/** 购物车管理*/
export function lisShopCar(data) {
  return request({
    url: '/ims/shopping/cart/page', method: 'get',params:data
  })
}
export function addShopCar(data) {
  return request({
    url: '/ims/shopping/cart/save', method: 'post',data:data
  })
}
export function updateShopCar(data) {
  return request({
    url: '/ims/shopping/cart/edit', method: 'post',data:data
  })
}
export function deleteShopCar(data) {
  return request({
    url: '/ims/shopping/cart/delete', method: 'post',data:data
  })
}
